Next | Prev | Up | Top | Contents | Index

Adding Files to the Volume Header With dvhtool

As explained in the section "Volume Headers" in Chapter 1, the volume header of system disks must contain a copy of the program sash. The procedure in this section explains how to put sash or other programs into a volume header. Before performing this procedure, review the discussion of dvhtool in the section "Volume Headers" in Chapter 1.

When you add programs to the volume header of a disk, there are two sources for those programs. One is the /stand directory of the system and the other is the /stand directory on an IRIX software release CD. The /stand directory on a CD (usually /CDROM/stand after the CD is mounted) contains copies of sash, fx, and ide that are processor-specific.

As superuser, perform this procedure to add programs to a volume header:

  1. Invoke dvhtool with the raw device name of the volume header of the disk as an argument, for example:

    # dvhtool /dev/rdsk/dks0d2vh

    (See the section "Device Names" in Chapter 1 for information on constructing the device name.)

  2. Display the volume directory portion of the volume header by using the vd (volume directory) and l (list) commands:
Command? (read, vd, pt, dp, write, bootfile, or quit): vd
(d FILE, a UNIX_FILE FILE, c UNIX_FILE FILE, g FILE UNIX_FILE or l)?
        l

Current contents:
        File name        Length     Block #
        sgilabel            512           2
        sash             159232           3

  1. For each program that you want to copy to the volume header, use the a (add) command. For example, to copy sash from the /stand directory to sash in the volume header, use this command:
(d FILE, a UNIX_FILE FILE, c UNIX_FILE FILE, g FILE UNIX_FILE or l)?
        a /stand/sash sash

As another example, to copy sash from a CD to an IP20 or IP22 system (an Indy(TM)), use this command:

(d FILE, a UNIX_FILE FILE, c UNIX_FILE FILE, g FILE UNIX_FILE or l)?
        a /CDROM/stand/sashARCS sash

CDs contain multiple processor-specific versions of sash; Table 1-3 lists the version of sash for each processor type.

  1. Confirm your changes by listing the contents of the volume with the l (list) command:
(d FILE, a UNIX_FILE FILE, c UNIX_FILE FILE, g FILE UNIX_FILE or l)?
        l

Current contents:
        File name        Length     Block #
        sgilabel            512           2
        sash             159232           3

  1. Make the changes permanent by writing the changes to the volume header using the quit command to exit this "submenu" and the write command:
(d FILE, a UNIX_FILE FILE, c UNIX_FILE FILE, g FILE UNIX_FILE or l)?
        quit

Command? (read, vd, pt, dp, write, bootfile, or quit): write

  1. Quit dvhtool by giving the quit command:
Command? (read, vd, pt, dp, write, bootfile, or quit): quit


Next | Prev | Up | Top | Contents | Index